﻿
@{
    Layout = null;
    ViewData["Title"] = "FuHeYeMian";
}
<script src="~/js/vue.js"></script>
<script src="~/js/axios.js"></script>
<script src="~/element-ui/lib/index.js"></script>
<link rel="stylesheet" href="~/element-ui/lib/theme-chalk/index.css" />

<div id="app">
    <template>
        <font color="black">
            您正在做的业务是：人力资源--招聘管理--录用管理--录用查询
        </font>
        <el-table :data="tableData"
                  style="width: 100%">
            <el-table-column prop="res_id"
                             label="简历主键"
                             width="180"
                             v-if="false">
            </el-table-column>
            <el-table-column prop="human_name"
                             label="姓名"
                             width="180">
            </el-table-column>
            <el-table-column prop="human_sex"
                             label="性别"
                             width="180">
            </el-table-column>
            <el-table-column prop="human_age"
                             label="年龄"
                             width="180">
            </el-table-column>
            <el-table-column prop="human_major_kind_name"
                             label="职位类型"
                             width="180">
            </el-table-column>
            <el-table-column prop="human_major_name"
                             label="职位名称"
                             width="180">
            </el-table-column>
            <el-table-column prop="human_college"
                             label="毕业院校"
                             width="180">
            </el-table-column>
            <el-table-column prop="human_educated_major"
                             label="学历专业"
                             width="180">
            </el-table-column>
            <el-table-column label="查看">
                <template slot-scope="scope">
                    <el-button size="primary"
                               v-on:click="DangAnDengJi(scope.row)">档案登记</el-button>
                </template>
            </el-table-column>
        </el-table>
    </template>
</div>

<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            tableData: [],
            currentPage: 1,
            //每页显示的行数
            rows: 1,
            //每页多少条数据
            size: 2,
        },
        methods: {
            SeAll() {
                axios.get("/JianLiGuanLi/MsJlSels").then(res => {
                    console.info("aaaa",res.data)
                    this.tableData = res.data;
                })
            },
            //跳转档案登记
            DangAnDengJi(row) {
                console.info("值：", row.resume_id);
                //window.parent.Myiframe.location.href = "/RenLiZiYuanDangAnGuanLi/Index?id=" + row.resume_id;
                location.href="/RenLiZiYuanDangAnGuanLi/Index?id=" + row.resume_id;
            },
            //页码大小改变方法
            handleSizeChange(size) {
                this.size = size;
                this.Find();
            },
            //当前页改变查询
            handleCurrentChange(currentPage) {
                this.currentPage = currentPage;
                this.Find();
            },
        },
        mounted() {
            this.SeAll();
        }
    })
</script>

